<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改密码</title>
<script type="text/javascript">
function checkPassword(){
	var pass1=document.getElementById("pw1").value;
	var pass2=document.getElementById("pw2").value;
	if(pass1!=pass2){
		document.getElementById("rpassword2").innerHTML="两次密码不一致"
		return false;
	}else if(pass1==""||pass1==null){
		document.getElementById("rpassword2").innerHTML="密码不能为空"
			return false;
	}else
	return true;
}
</script>
</head>
<c:if test="${pass==null&&pass2==null}">
	<c:redirect url="http://localhost:8080/health/login.htm" />
</c:if>
<body style="text-align:center">
<h2>修改密码</h2>
<form action="../setPassword.do" method="post" onsubmit="return checkPassword()">
请输入密码:<input type="password" id="pw1" name="password"><br/><br/>
请再次输入:<input type="password" id="pw2" name="password2"><br/>
<span id="rpassword2"></span><br/>
<input type="submit" value="提交">
</form>
</body>
</html>